package com.yuelan.codelib.utils;

import android.app.Activity;
import android.content.Context;

public class ActivityUtil {
	public static boolean exists(Context context) {
		if (context == null) {
			return false;
		}
		Activity activity = (Activity) context;
		if (activity != null && !activity.isFinishing()) {
			return true;
		}
		return false;
	}
}
